.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.like-button.loading {
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden {
    display: none ;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 文章编辑器样式 */
.editor-toolbar {
    display: flex;
    gap: 8px;
    background-color: #f7f7f7;
    padding: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.editor-toolbar button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.editor-toolbar button:hover {
    background-color: #e5e5e5;
}

.editor-content {
    padding: 16px;
    min-height: 300px;
    outline: none;
}

/* 文章卡片样式 */
.article-card {
    transition: all 0.2s ease;
}
.article-card:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
}

/* 限制摘要行数 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 消息提醒样式 */
.message-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* 分页按钮样式 */
#article-pagination a {
    min-width: 2rem;
    text-align: center;
}

.pagination button:hover {
    background-color: #e5e5e5;
}

/* 收藏样式 */
.favorite {
    color: #ccc;
    cursor: pointer;
}

.favorite.fas {
    color: #f00;
}

/* 关注样式 */
.follow {
    background-color: #007BFF;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.follow:hover {
    background-color: #0056b3;
}

.unfollow {
    background-color: #ccc;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.unfollow:hover {
    background-color: #aaa;
}